import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //分页获取物料入库列表
  GetPageInStockBillList(data?: any) {
    return request({
      url: '/api/InStockBill/GetPageInStockBillList',
      method: 'post',
      data,
    });
  },
  //分页获取物料入库的申请单
  GetPageInStockRequestBillList(data?: any) {
    return request({
      url: '/api/InStockBill/GetPageInStockRequestBillList',
      method: 'post',
      data,
    });
  },
  //获取单条入库单信息
  GetSingleInStockBillView(data?: any) {
    return request({
      url: '/api/InStockBill/GetSingleInStockBillView',
      method: 'post',
      data,
    });
  },
  //获取物料入库的申请单明细
  GetInStockRequestDetailBillList(data?: any) {
    return request({
      url: '/api/InStockBill/GetInStockRequestDetailBillList',
      method: 'post',
      data,
    });
  },
  //创建物料入库单
  AddInStockBill(data?: any) {
    return request({
      url: '/api/InStockBill/AddInStockBill',
      method: 'post',
      data,
    });
  },
  //修改退料入库单
  UpdateInStockBill(data?: any) {
    return request({
      url: '/api/InStockBill/UpdateInStockBill',
      method: 'post',
      data,
    });
  },
  //修改入库单状态
  UpdateInStockBillState(data?: any) {
    return request({
      url: '/api/InStockBill/UpdateInStockBillState',
      method: 'post',
      data,
    });
  },
  //修改入库单状态
  AddProductionBatch(data?: any) {
    return request({
      url: '/api/InStockBill/AddProductionBatch',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
